//
//  ADJgSDKSplashAdContainer.h
//  AnyThinkSDKDemo
//
//  Created by 刘娟 on 2024/9/25.
//  Copyright © 2024 抽筋的灯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ADJgSDK/ADJgSDKSplashAd.h>

@class ADJgSDKSplashAdContainer;
NS_ASSUME_NONNULL_BEGIN

@protocol ADJgSDKSplashAdContainerDelegate <NSObject>
/**
 *  开屏广告素材加载成功
 */
- (void)jgsdkContainer_jgsdkSplashAdDidLoad:(ADJgSDKSplashAdContainer *)splashAd withPrice:(NSInteger)bidPrice;

/**
 *  开屏广告请求失败
 */
- (void)jgsdkContainer_jgsdkSplashAdFailLoadError:(NSError *)error;

@end

@interface ADJgSDKSplashAdContainer : NSObject

@property (nonatomic, weak)id<ADJgSDKSplashAdContainerDelegate> containerDelegate;

@property (nonatomic, weak)id<ADJgSDKSplashAdDelegate> delegate;

/// 初始化容器
- (instancetype)initPosId:(NSString *)posId delegate:(id<ADJgSDKSplashAdDelegate>)delegate;

/// 加载并展示
- (void)loadAndShowInWindow:(UIWindow *)window withBottomView:(nullable UIView *)bottomView;

/// 加载
- (void)loadAdWithBottomView:(UIView *)bottomView;

/// 展示
- (void)showAdInWindow:(UIWindow *)window;

/// 销毁
- (void)close;

///获取竞价价格
- (NSInteger)getBidPrice;
@end

NS_ASSUME_NONNULL_END
